package by.amakarevich.services;

import org.springframework.transaction.annotation.Transactional;

import by.amakarevich.datamodel.Discount;
import by.amakarevich.datamodel.Product;

public interface DiscountService {
	
	@Transactional
	Discount get(Long id);
	
	@Transactional
	void createDiscount(Discount discount, Product product);
	
	@Transactional
	void deleteDiscount(Discount discount);
	
	@Transactional
	void updateDiscount(Discount discount);
	
	@Transactional
    void deleteAll();
}
